package com.zeekr.orm.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zeekr.orm.model.dto.user.UserQueryRequest;
import com.zeekr.orm.model.entity.User;
import com.zeekr.orm.model.vo.LoginUserVO;
import com.zeekr.orm.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 123
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2024-11-09 04:53:29
 */
public interface UserService extends IService<User> {

  QueryWrapper<User> getQueryWrapper(UserQueryRequest userQueryRequest);

  UserVO getUserVO(User user);

  List<UserVO> getUserVO(List<User> pages);

  User getLoginUser(HttpServletRequest request);


  LoginUserVO userLogin(String userAccount, String userPassword, HttpServletRequest request);

  LoginUserVO getLoginUserVO(User user);
}
